// 定义全局基础函数库
import Vue from 'vue'
import md5 from './md5/md5.min.js'
import {strIsEmpty,
  objIsNull,
  numIsValid,
  listIsEmpty,
  boolIsTrue} from './valid/valid_util.js'

import {recoverVuex,saveInSessionStorage} from './recover/recover_vuex'


// ***绑定到 vue 原型中，组件中使用util*********************
// md5PasswordStr = this.util.md5(passwordStr)
Vue.prototype.util = {
  md5,
  strIsEmpty,
  objIsNull,
  numIsValid,
  listIsEmpty,
  boolIsTrue
}

export {
  md5,
  strIsEmpty,
  objIsNull,
  numIsValid,
  listIsEmpty,
  boolIsTrue,
  recoverVuex,
  saveInSessionStorage
}